// 导入 express
const express = require("express");
// 创建路由对象
const router = express.Router();
const user = require("./service");

// 获取用户的基本信息
router.post("/Sendpiece", user.Sendpiece);
router.get("/Waybill", user.Waybill);
//省
router.get("/Networkpointprovince", user.Networkpointprovince);
//市
router.get("/Networkpointcity", user.Networkpointcity);
//区
router.get("/Networkpointdistrict", user.Networkpointdistrict);
//站点
router.get("/Networkpointname", user.Networkpointname);
//查询运费
router.post("/Freight", user.Freight);
//登录
router.post("/login", user.login);
//注册
router.post("/Register", user.Register);
//新闻
router.get("/news", user.News);
//成为vip
router.get("/vip", user.vip);
// 向外共享路由对象
module.exports = router;
